{% extends "base.html" %}
{% load markup %}
{% block content %}
    {% if search_blogs %}
        {% for post in search_blogs %}
            <h1> {{ post.title }}</h1>

            <p> {{ post.text|markdown}}</p>

            {% if post.get_tag_list %}
                <p class="post-footer">
                    {% for tag in post.get_tag_list %}
                        <a href="#" class="readmore"> {{ tag }}</a>
                    {% endfor %}
                </p>
            {% endif %}
            <p class="post-footer">
                <a href="#" class="comments">Comments (0)</a>
                <span class="date">{{ post.updated }}</span>
            </p>
        {% endfor %}
    {% else %}
        <p>No blog found with key word <strong>{{ term }}</strong></p>
    {% endif %}
{% endblock %}